package com.tepth.busfix.main.repair;

import com.tepth.busfix.base.BaseModel;
import com.tepth.busfix.base.BasePresenter;
import com.tepth.busfix.base.BaseView;
import com.tepth.busfix.bean.reponse.BusRepairHistory;
import com.tepth.busfix.network.ApiModel;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by pc on 2017/3/15.
 */

public class HistoryContract {

    interface View extends BaseView {
        String getAuthKey();
        String getCode();

        void showData(List<BusRepairHistory> list);
    }

    interface Model extends BaseModel {
        Observable<ApiModel<List<BusRepairHistory>>> getRepairHistory(String authKey, String code);
    }

    abstract static class Presenter extends BasePresenter<Model, View> {

        @Override
        public void onStart() {

        }
        abstract void getRepairHistory();
    }

}